-
-
Notifications
You must be signed in to change notification settings - Fork 253
chore: fix "name" deprecation for aws_region data source #363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This fixes the deprecation of the "name" attribute for the aws_region data source, adding a fallback for provider versions < 6.0.0.
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 📝 WalkthroughWalkthroughAddressed AWS provider v6+ deprecation warning by introducing a fallback mechanism in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/terratest |
|
@goruha Looks like the terratest workflow is not running, can you re-trigger it? |
|
/terratest |
|
@morremeyer, tests are failing. Could you pls fix ? |
goruha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the comment ^
|
@goruha I fixed the errors, but noticed that the warning for the deprecated attribute does not go away, since it's still used in the code - the evaluation for that seems to be static. So the way to fix this deprecation warning is to require provider versions However, that makes this a breaking change, requring the I see this as a viable solution, since the AWS provider version 6.0.0 was released in June 2025, allowing 7 months since then to update, and the assumption/requirement that someone updating this module also updated their AWS provider before (or will do so to update this module afterwards) is reasonable. Happy to hear your thoughts! |
|
/terratest |
|
@morremeyer I think that's absolutely fine to cut a major version that requires provider |
|
These changes were released in v2.0.0. |
what
This fixes the deprecation of the "name" attribute for the aws_region data source, adding a fallback for provider versions < 6.0.0.
why
To get rid of the deprecation notice and prepare for provider version 7.
references
Resolves #361.